The OSD should only be shown when switching to or from headphones,
not when initializing the volume indicator during startup.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8054
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3543>
if (hasHeadphones === this._hasHeadphones)
return;
+ const initializing = this._hasHeadphones === undefined;
this._hasHeadphones = hasHeadphones;
this._updateIcon();
- this.showOSD();
+ if (!initializing)
+ this.showOSD();
}
_updateIcon() {